package com.lovo.web.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@ApiModel(value = "购物车实体类",description = "购物车实体类")
@TableName("buycar")
public class BuyCarBean   {
    @TableId(value = "pk_buyCarId",type = IdType.AUTO)
    @ApiModelProperty(value = "购物车主键id")
    private long id;

    @TableField("fk_userId")
    @ApiModelProperty("购物车关联用户id")
    private long userId;

    @TableField("b_goodsName")
    @ApiModelProperty("购物车商品名字")
    private String goodsName;

    @TableField("b_specs")
    @ApiModelProperty("购物车商品规格")
    private String specs;

    @TableField(exist = false)
    @ApiModelProperty("商品详情")
    private ProductInfoBean productInfo;


    @TableField(exist = false)
    @ApiModelProperty("购买商品")
    private ProductBean product;

    @TableField("b_num")
    @ApiModelProperty("购买数量")
    private int num;

}
